Skip to content

Conversation

braniii
Copy link
Contributor

@braniii braniii commented Apr 25, 2022

Hello,

I am sorry for the short PR yesterday, but I got interrupted. So my concern is that import scikit-learn-extra in a pytest environment leads to raising warnings. I need to admit, that I am not able to reproduce a minimal working example.

I would suggest to remove the depracted call of distutils.version.LooseVersion with packaging.version.Version. The reason is that starting from Python 3.12 the distutils package will be removed, see PEP634. In the packaging module there is no LooseVersion, but regarding the strict versioning of sklearn and numpy this should make no difference.

PS: I've just notice that it is checked against version below the INSTALL_REQUIRES. So it should be save deleting these checks completely.

INSTALL_REQUIRES = ["numpy>=1.13.3", "scipy>=0.19.1", "scikit-learn>=0.23.0"]

@braniii
Copy link
Contributor Author

braniii commented Oct 26, 2023

Python 3.12 support has been added to scikit-learn, see scikit-learn/scikit-learn#27027. So this would be the first step towards supporting py3.12 with the latest sklearn 1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants